package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YushouToBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YushouToService extends BaseService<YushouToBean> {

	YushouToBean getYushouToBeanById(String id) throws Exception;
	
	void removeYushouToBeanById(String id) throws Exception;
	
	void removeYushouToBeanByIds(String ids) throws Exception;
	
	YushouToBean saveYushouToBean(YushouToBean crm) throws Exception;
	
	YushouToBean updateYushouToBean(YushouToBean crm) throws Exception;
	
	Page<YushouToBean>  findYushouToBeanByCond(YushouToBean bean,
			Page<YushouToBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYushouToBeanExt(String sql) throws Exception;

	String findYushouToBeanExtCreate(String tableName) throws Exception;

	String findYushouToBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYushouToBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYushouToBeanExtData(String tableName, String id)
			throws Exception;
}